package com.attms.domain.AbsentStrategy;

import com.attms.domain.Absent;
import com.attms.domain.Employee;

import java.time.Duration;

public class AbS6 implements AbS{
    public void apply(Employee employee, int days, Absent absence){
        employee.setE_RLACTATION(employee.getE_RLACTATION()
                            - (int) Duration.between(absence.getA_STTIME(), absence.getA_ENDTIME()).toHours());
    }
}
